package com.QSMoney.entity.VO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.util.Date;
import java.util.List;

@Data
@Schema(description = "登录接口的返回实体类")
public class LoginMoneyUserVo {
    @Schema(description = "用户id")
    private Long User_id;
    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "昵称")
    private String nickName;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "用户状态（0正常 1停用）")
    private String status;
    @Schema(description = "最后登录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;
    @Schema(description = "角色权限如 [\"admin\", \"editor\"]")
    private List<String> role;
    @Schema(description = "token")
    private String token;
    @Schema(description = "token时间")
    private Date expires;

}
